package com.itheima.sh.user.service;

import com.itheima.sh.user.mapper.UserMapper;
import com.itheima.sh.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 96558
 * @Date 2021/1/2 20:41
 * @Version 1.0
 **/
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User queryById(String username) {
        return userMapper.findById(username);
    }
}
